import request from '@/utils/request'

// 查询检查列表
export function listCheck(statusList) {
  return request({
    url: '/check/status/statusList?statusList='+statusList,
    method: 'get',
  })
}
// 查询检查统计列表
export function findById(query) {
  return request({
    url: '/rgCheck/findById',
    method: 'get',
    params: query
  })
}


// 根据订单编号查询检查列表
export function listCheckId(list) {
  return request({
    url: '/check/id/list?list='+list,
    method: 'get',
  })
}

// 修改状态
export function alterStatus(data) {
  return request({
    url: '/check/alterStatus',
    method: 'post',
    data: data
  })
}

// 上传图片
export function upload(data) {
  return request({
    url: '/check/upload',
    method: 'post',
    data: data
  })
}

// 上传结果
export function uploadResult(data) {
  return request({
    url: '/check/uploadResult',
    method: 'post',
    data: data
  })
}

// 图片预览
export function showImage(imageName) {
  return request({
    url: '/check/showImage',
    method: 'post',
    data: imageName
  })
}
/*
// 修改岗位
export function updatePost(data) {
  return request({
    url: '/system/post',
    method: 'put',
    data: data
  })
}

// 删除岗位
export function delPost(postId) {
  return request({
    url: '/system/post/' + postId,
    method: 'delete'
  })
}

// 导出岗位
export function exportPost(query) {
  return request({
    url: '/system/post/export',
    method: 'get',
    params: query
  })
}*/
